#ifndef _CRESOURCEMANAGER_H_
#define _CRESOURCEMANAGER_H_

#include "Sprite.h"
#include "Map.h"
#include <d3dx9.h>
enum ResourceId
{
	RESOURCE__INPUT_CURSOR,
	RESOURCE__MENU_BACKGROUND,
	RESOURCE__GAMEPLAY_BACKGROUND,
	RESOURCE__GAMEPLAY_MARIO_KID,
	RESOURCE__GAMEPLAY_LAND,
	RESOURCE__GAMEPLAY_MAP,
	RESOURCE__GAMEPLAY_WALL,
	RESOURCE__GAMEPLAY_PIPE,
	RESOURCE__GAMEPLAY_COIN,
	RESOURCE__GAMEPLAY_TURTLE,
	RESOURCE__GAMEPLAY_ENEMY
};


class CResourceManager
{
private:
	CSprite* m_menuBackground;
	CSprite* m_gamePlayEnemy;
	CSprite* m_menuGamePlay;
	CSprite* m_inputMouse;
	CSprite* m_gamePlayMarrioKid;
	CSprite* m_gamePlayLand;
	CMap* m_gamePlayMap;
	CSprite* m_gamePlayWall;
	CSprite* m_gamePlayPipe;
	CSprite* m_gamePlayCoin;

	static CResourceManager* m_resource;
	static LPDIRECT3DDEVICE9 m_pD3DDevice;
public:
	CResourceManager();
	void Init(LPDIRECT3DDEVICE9 pD3DDevice);
	LPDIRECT3DTEXTURE9 LoadTexture(char* fileName);
	CSprite* GetSprite(ResourceId id);
	CMap* GetMap(ResourceId id);
	static CResourceManager* GetInstance();
};

#endif